package Work;

public class TestEmployee {
    public static void main(String[] args)
    {
        Manager manager = new Manager("张经理",28,8000,2500);
        Worker[] workers = new Worker[3];
        workers[0] = new Worker("张三",20,22,300);
        workers[1] = new Worker("李四",23,25,300);
        workers[2] = new Worker("王五",21,15,250);
        manager.printInfo();
        for(Worker worker: workers)
        {
            worker.printInfo();
        }
    }
}
